# ST Visual Debugger Generated MAKE File, based on shakeled.stp

ifeq ($(CFG), )
CFG=Debug
$(warning ***No configuration specified. Defaulting to $(CFG)***)
endif

ToolsetRoot=C:\PROGRA~2\COSMIC\CXSTM8~1
ToolsetBin=C:\Program Files (x86)\COSMIC\CXSTM8_32K
ToolsetInc=C:\Program Files (x86)\COSMIC\CXSTM8_32K\Hstm8
ToolsetLib=C:\Program Files (x86)\COSMIC\CXSTM8_32K\Lib
ToolsetIncOpts=-i"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Hstm8" 
ToolsetLibOpts=-l"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Lib" 
ObjectExt=o
OutputExt=elf
InputName=$(basename $(notdir $<))


# 
# Debug
# 
ifeq "$(CFG)" "Debug"


OutputPath=Debug
ProjectSFile=shakeled
TargetSName=$(ProjectSFile)
TargetFName=$(ProjectSFile).elf
IntermPath=$(dir $@)
CFLAGS_PRJ=$(ToolsetBin)\cxstm8  +mods0 +debug -pxp +compact -pp -l -dSTM8S003 -i..\libraries\stm8s_stdperiph_driver\inc -i..\src -i..\src\third_part\timeout -i..\src\key\inc $(ToolsetIncOpts) -cl$(IntermPath:%\=%) -co$(IntermPath:%\=%) $<
ASMFLAGS_PRJ=$(ToolsetBin)\castm8  -xx -l $(ToolsetIncOpts) -o$(IntermPath)$(InputName).$(ObjectExt) $<

all : $(OutputPath) $(ProjectSFile).elf

$(OutputPath) : 
	if not exist $(OutputPath)/ mkdir $(OutputPath)

Debug\adcscan.$(ObjectExt) : ..\src\adcscan.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\adcscan.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\batterystatuskey.$(ObjectExt) : ..\src\batterystatuskey.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\batterystatuskey.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\hardware_driver.$(ObjectExt) : ..\src\hardware_driver.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\hardware_driver.h ..\src\led_array_driver.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h ..\src\third_part\timeout\timeout.h ..\src\adcscan.h ..\src\batterystatuskey.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\key_port.$(ObjectExt) : ..\src\key\port\key_port.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\key.$(ObjectExt) : ..\src\key\src\key.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\key\inc\key.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h ..\src\third_part\timeout\timeout.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\led_array_driver.$(ObjectExt) : ..\src\led_array_driver.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\led_array_driver.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_it.$(ObjectExt) : ..\src\stm8s_it.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\stm8s_it.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h ..\src\third_part\timeout\timeout.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\timeout.$(ObjectExt) : ..\src\third_part\timeout\timeout.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\third_part\timeout\timeout.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\main.$(ObjectExt) : main.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h ..\src\hardware_driver.h ..\src\led_array_driver.h ..\src\batterystatuskey.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8_interrupt_vector.$(ObjectExt) : stm8_interrupt_vector.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\stm8s_it.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_adc1.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_adc1.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_clk.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_clk.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_exti.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_exti.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_flash.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_flash.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_gpio.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_gpio.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_tim2.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_tim4.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_tim4.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\stm8s_uart1.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_uart1.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_uart1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s.h ..\src\stm8s_conf.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_adc1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_awu.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_beep.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_clk.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_exti.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_flash.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_gpio.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_i2c.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_itc.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_iwdg.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_rst.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_spi.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim1.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim2.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_tim4.h ..\libraries\stm8s_stdperiph_driver\inc\stm8s_wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

$(ProjectSFile).elf :  $(OutputPath)\adcscan.o $(OutputPath)\batterystatuskey.o $(OutputPath)\hardware_driver.o $(OutputPath)\key_port.o $(OutputPath)\key.o $(OutputPath)\led_array_driver.o $(OutputPath)\stm8s_it.o $(OutputPath)\timeout.o $(OutputPath)\main.o $(OutputPath)\stm8_interrupt_vector.o $(OutputPath)\stm8s_adc1.o $(OutputPath)\stm8s_clk.o $(OutputPath)\stm8s_exti.o $(OutputPath)\stm8s_flash.o $(OutputPath)\stm8s_gpio.o $(OutputPath)\stm8s_tim2.o $(OutputPath)\stm8s_tim4.o $(OutputPath)\stm8s_uart1.o $(OutputPath)\shakeled.lkf
	$(ToolsetBin)\clnk  $(ToolsetLibOpts) -o $(OutputPath)\$(TargetSName).sm8 -m$(OutputPath)\$(TargetSName).map $(OutputPath)\$(TargetSName).lkf 
	$(ToolsetBin)\cvdwarf  $(OutputPath)\$(TargetSName).sm8

	$(ToolsetBin)\chex  -o $(OutputPath)\$(TargetSName).s19 $(OutputPath)\$(TargetSName).sm8
clean : 
	-@erase $(OutputPath)\adcscan.o
	-@erase $(OutputPath)\batterystatuskey.o
	-@erase $(OutputPath)\hardware_driver.o
	-@erase $(OutputPath)\key_port.o
	-@erase $(OutputPath)\key.o
	-@erase $(OutputPath)\led_array_driver.o
	-@erase $(OutputPath)\stm8s_it.o
	-@erase $(OutputPath)\timeout.o
	-@erase $(OutputPath)\main.o
	-@erase $(OutputPath)\stm8_interrupt_vector.o
	-@erase $(OutputPath)\stm8s_adc1.o
	-@erase $(OutputPath)\stm8s_clk.o
	-@erase $(OutputPath)\stm8s_exti.o
	-@erase $(OutputPath)\stm8s_flash.o
	-@erase $(OutputPath)\stm8s_gpio.o
	-@erase $(OutputPath)\stm8s_tim2.o
	-@erase $(OutputPath)\stm8s_tim4.o
	-@erase $(OutputPath)\stm8s_uart1.o
	-@erase $(OutputPath)\shakeled.elf
	-@erase $(OutputPath)\shakeled.elf
	-@erase $(OutputPath)\shakeled.map
	-@erase $(OutputPath)\adcscan.ls
	-@erase $(OutputPath)\batterystatuskey.ls
	-@erase $(OutputPath)\hardware_driver.ls
	-@erase $(OutputPath)\key_port.ls
	-@erase $(OutputPath)\key.ls
	-@erase $(OutputPath)\led_array_driver.ls
	-@erase $(OutputPath)\stm8s_it.ls
	-@erase $(OutputPath)\timeout.ls
	-@erase $(OutputPath)\main.ls
	-@erase $(OutputPath)\stm8_interrupt_vector.ls
	-@erase $(OutputPath)\stm8s_adc1.ls
	-@erase $(OutputPath)\stm8s_beep.ls
	-@erase $(OutputPath)\stm8s_clk.ls
	-@erase $(OutputPath)\stm8s_exti.ls
	-@erase $(OutputPath)\stm8s_flash.ls
	-@erase $(OutputPath)\stm8s_gpio.ls
	-@erase $(OutputPath)\stm8s_itc.ls
	-@erase $(OutputPath)\stm8s_iwdg.ls
	-@erase $(OutputPath)\stm8s_rst.ls
	-@erase $(OutputPath)\stm8s_spi.ls
	-@erase $(OutputPath)\stm8s_tim1.ls
	-@erase $(OutputPath)\stm8s_tim2.ls
	-@erase $(OutputPath)\stm8s_tim4.ls
	-@erase $(OutputPath)\stm8s_uart1.ls
	-@erase $(OutputPath)\stm8s_wwdg.ls
endif

# 
# Release
# 
ifeq "$(CFG)" "Release"


OutputPath=Release
ProjectSFile=shakeled
TargetSName=shakeled
TargetFName=shakeled.elf
IntermPath=$(dir $@)
CFLAGS_PRJ=$(ToolsetBin)\cxstm8  +mods0 -pp $(ToolsetIncOpts) -cl$(IntermPath:%\=%) -co$(IntermPath:%\=%) $<
ASMFLAGS_PRJ=$(ToolsetBin)\castm8  $(ToolsetIncOpts) -o$(IntermPath)$(InputName).$(ObjectExt) $<

all : $(OutputPath) shakeled.elf

$(OutputPath) : 
	if not exist $(OutputPath)/ mkdir $(OutputPath)

Release\adcscan.$(ObjectExt) : ..\src\adcscan.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\adcscan.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\batterystatuskey.$(ObjectExt) : ..\src\batterystatuskey.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\batterystatuskey.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\hardware_driver.$(ObjectExt) : ..\src\hardware_driver.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\hardware_driver.h ..\src\led_array_driver.h ..\src\stm8s_conf.h ..\src\adcscan.h ..\src\batterystatuskey.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\key_port.$(ObjectExt) : ..\src\key\port\key_port.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\key.$(ObjectExt) : ..\src\key\src\key.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\led_array_driver.$(ObjectExt) : ..\src\led_array_driver.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\led_array_driver.h ..\src\stm8s_conf.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_it.$(ObjectExt) : ..\src\stm8s_it.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\stm8s_it.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\timeout.$(ObjectExt) : ..\src\third_part\timeout\timeout.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h ..\src\third_part\timeout\timeout.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\main.$(ObjectExt) : main.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8_interrupt_vector.$(ObjectExt) : stm8_interrupt_vector.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_adc1.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_adc1.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_beep.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_beep.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_clk.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_clk.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_exti.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_exti.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_flash.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_flash.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_gpio.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_gpio.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_itc.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_itc.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_iwdg.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_iwdg.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_rst.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_rst.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_spi.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_spi.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_tim1.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_tim1.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_tim2.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_tim4.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_tim4.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_uart1.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_uart1.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\stm8s_wwdg.$(ObjectExt) : ..\libraries\stm8s_stdperiph_driver\src\stm8s_wwdg.c c:\PROGRA~2\cosmic\CXSTM8~1\hstm8\mods0.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

shakeled.elf :  $(OutputPath)\adcscan.o $(OutputPath)\batterystatuskey.o $(OutputPath)\hardware_driver.o $(OutputPath)\key_port.o $(OutputPath)\key.o $(OutputPath)\led_array_driver.o $(OutputPath)\stm8s_it.o $(OutputPath)\timeout.o $(OutputPath)\main.o $(OutputPath)\stm8_interrupt_vector.o $(OutputPath)\stm8s_adc1.o $(OutputPath)\stm8s_clk.o $(OutputPath)\stm8s_exti.o $(OutputPath)\stm8s_flash.o $(OutputPath)\stm8s_gpio.o $(OutputPath)\stm8s_tim2.o $(OutputPath)\stm8s_tim4.o $(OutputPath)\stm8s_uart1.o $(OutputPath)\shakeled.lkf
	$(ToolsetBin)\clnk  $(ToolsetLibOpts) -o $(OutputPath)\$(TargetSName).sm8 $(OutputPath)\$(TargetSName).lkf 
	$(ToolsetBin)\cvdwarf  $(OutputPath)\$(TargetSName).sm8 

	$(ToolsetBin)\chex  -o $(OutputPath)\$(TargetSName).s19 $(OutputPath)\$(TargetSName).sm8
clean : 
	-@erase $(OutputPath)\adcscan.o
	-@erase $(OutputPath)\batterystatuskey.o
	-@erase $(OutputPath)\hardware_driver.o
	-@erase $(OutputPath)\key_port.o
	-@erase $(OutputPath)\key.o
	-@erase $(OutputPath)\led_array_driver.o
	-@erase $(OutputPath)\stm8s_it.o
	-@erase $(OutputPath)\timeout.o
	-@erase $(OutputPath)\main.o
	-@erase $(OutputPath)\stm8_interrupt_vector.o
	-@erase $(OutputPath)\stm8s_adc1.o
	-@erase $(OutputPath)\stm8s_clk.o
	-@erase $(OutputPath)\stm8s_exti.o
	-@erase $(OutputPath)\stm8s_flash.o
	-@erase $(OutputPath)\stm8s_gpio.o
	-@erase $(OutputPath)\stm8s_tim2.o
	-@erase $(OutputPath)\stm8s_tim4.o
	-@erase $(OutputPath)\stm8s_uart1.o
	-@erase $(OutputPath)\shakeled.elf
	-@erase $(OutputPath)\shakeled.map
	-@erase $(OutputPath)\shakeled.st7
	-@erase $(OutputPath)\shakeled.s19
	-@erase $(OutputPath)\adcscan.ls
	-@erase $(OutputPath)\batterystatuskey.ls
	-@erase $(OutputPath)\hardware_driver.ls
	-@erase $(OutputPath)\key_port.ls
	-@erase $(OutputPath)\key.ls
	-@erase $(OutputPath)\led_array_driver.ls
	-@erase $(OutputPath)\stm8s_it.ls
	-@erase $(OutputPath)\timeout.ls
	-@erase $(OutputPath)\main.ls
	-@erase $(OutputPath)\stm8_interrupt_vector.ls
	-@erase $(OutputPath)\stm8s_adc1.ls
	-@erase $(OutputPath)\stm8s_beep.ls
	-@erase $(OutputPath)\stm8s_clk.ls
	-@erase $(OutputPath)\stm8s_exti.ls
	-@erase $(OutputPath)\stm8s_flash.ls
	-@erase $(OutputPath)\stm8s_gpio.ls
	-@erase $(OutputPath)\stm8s_itc.ls
	-@erase $(OutputPath)\stm8s_iwdg.ls
	-@erase $(OutputPath)\stm8s_rst.ls
	-@erase $(OutputPath)\stm8s_spi.ls
	-@erase $(OutputPath)\stm8s_tim1.ls
	-@erase $(OutputPath)\stm8s_tim2.ls
	-@erase $(OutputPath)\stm8s_tim4.ls
	-@erase $(OutputPath)\stm8s_uart1.ls
	-@erase $(OutputPath)\stm8s_wwdg.ls
endif
